package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.PresaleCouponOrderAfterSalesRecord;
import com.ecoolex.hotel.saas.entity.PresaleCouponOrderAfterSalesRecordExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface PresaleCouponOrderAfterSalesRecordMapper {
    long countByExample(PresaleCouponOrderAfterSalesRecordExample example);

    int deleteByExample(PresaleCouponOrderAfterSalesRecordExample example);

    int deleteByPrimaryKey(Integer recordId);

    int insert(PresaleCouponOrderAfterSalesRecord record);

    int insertSelective(@Param("record") PresaleCouponOrderAfterSalesRecord record, @Param("selective") PresaleCouponOrderAfterSalesRecord.Column ... selective);

    PresaleCouponOrderAfterSalesRecord selectOneByExample(PresaleCouponOrderAfterSalesRecordExample example);

    List<PresaleCouponOrderAfterSalesRecord> selectByExample(PresaleCouponOrderAfterSalesRecordExample example);

    PresaleCouponOrderAfterSalesRecord selectByPrimaryKey(Integer recordId);

    PresaleCouponOrderAfterSalesRecord selectByPrimaryKeyWithLogicalDelete(@Param("recordId") Integer recordId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") PresaleCouponOrderAfterSalesRecord record, @Param("example") PresaleCouponOrderAfterSalesRecordExample example, @Param("selective") PresaleCouponOrderAfterSalesRecord.Column ... selective);

    int updateByExample(@Param("record") PresaleCouponOrderAfterSalesRecord record, @Param("example") PresaleCouponOrderAfterSalesRecordExample example);

    int updateByPrimaryKeySelective(@Param("record") PresaleCouponOrderAfterSalesRecord record, @Param("selective") PresaleCouponOrderAfterSalesRecord.Column ... selective);

    int updateByPrimaryKey(PresaleCouponOrderAfterSalesRecord record);

    int batchInsert(@Param("list") List<PresaleCouponOrderAfterSalesRecord> list);

    int batchInsertSelective(@Param("list") List<PresaleCouponOrderAfterSalesRecord> list, @Param("selective") PresaleCouponOrderAfterSalesRecord.Column ... selective);

    int logicalDeleteByExample(@Param("example") PresaleCouponOrderAfterSalesRecordExample example);

    int logicalDeleteByPrimaryKey(Integer recordId);
}